import 'package:flutter/material.dart';

class ChatScreen extends StatefulWidget {
  const ChatScreen({super.key});

  @override
  ChatScreenState createState() => ChatScreenState();
}

class ChatScreenState extends State<ChatScreen> {
  @override
  void initState() {
    super.initState();
  }

  void sendNotification() {
    // WebNotify.show();
    // WebNotify.showTopNotification(
    //   title: "新消息",
    //   content: "您有3条未读消息",
    // );
    // WebNotify.showTopNotification(context, "新消息");
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Center(
        child: Column(
          children: [
            SizedBox(
              height: 200,
            ),
            ElevatedButton(
              onPressed: sendNotification,
              child: const Text('发送通知'),
            ),
            ElevatedButton(
              onPressed: () => {print('55555555555555')},
              child: const Text('发送通知'),
            ),
          ],
        ),
      ),
    );
  }
}
